@import '../../../variables';

.page-settings {
  text-align: start;

  collapsible {
    position: relative;
  }

  .section-wrapper {
    //display: grid;
    //grid-template-columns: 50% 50%;
    //grid-gap: 0 $s*2;
  }

  .config-section {
    @include dividerBorderColor(1px);
    break-inside: avoid;
    margin-bottom: 10px;
    border-radius: $card-border-radius;
    background: #ffffff;

    @include darkTheme {
      background-color: $dark-theme-card-bg;
      //background-color: $dark-theme-bg-slightly-lighter;
    }

    .md-title {
      margin-top: 0;
    }

    ::ng-deep .collapsible-header {
      border-bottom: 1px solid transparent;
    }

    ::ng-deep .isExpanded .collapsible-header {
      font-weight: bold;
      border-color: $light-theme-extra-border-color;

      @include darkTheme {
        border-color: $dark-theme-extra-border-color;
      }
    }
  }

  .settings-col {
    margin-bottom: 30px;

    &:last-child {
      margin-bottom: 0;
    }
  }

  @include mq(xs, max) {
    .keyboard-settings {
      display: none;
    }
  }
}

.version-footer {
  margin-top: auto;
  text-align: center;
  font-style: italic;
  padding: $s * 3;
}

.dark-mode-select {
  margin: 20px 0;

  display: flex;
  justify-content: stretch;
  align-items: center;

  h3 {
    margin-right: $s * 2;
  }
}
